﻿#pragma once
#include "afxdialogex.h"
#include "resource.h"
#include "hexeditbase.h"
#include "CHorizontalMenuWnd.h"

class CEditPage : public CPropertyPage {
	DECLARE_DYNAMIC(CEditPage)

public:
	CEditPage();
	CHexEditBase m_HexEdit;
	virtual ~CEditPage();
	virtual BOOL OnInitDialog();
	virtual BOOL OnSetActive();   // 页面激活时调用
	virtual BOOL OnKillActive();  // 页面取消激活时调用
	BOOL IsDynamicChecked();
	BOOL IsStaticChecked();
	CHorizontalMenuWnd* m_pMenuWnd = nullptr;
	BOOL m_bInitialized = FALSE;
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_DIALOG_PAGE };
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持
	void OnContextMenu(CWnd* pWnd, CPoint point);
	afx_msg void OnMove(int x, int y);
	DECLARE_MESSAGE_MAP()
private:

	std::vector<std::pair<CString, UINT>> m_menuItems;

	void InitMenuItems();
};
